package com.cze.mapper;

import com.cze.vo.Product;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ProductMapper {
    int add(Product product);
    int delelte(@Param("id") int productID);
    int update(Product product);
    List<Product> selectAll();
    int countAll();
    List<Product> selectPage(@Param("index") int index, @Param("limit") int limit);
    List<Product> findByKeyWord(@Param("kw") String keyword);
    Product findByID(@Param("id") int productID);
}
